﻿<local:SelectContactsPageBase
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:local="clr-namespace:Com.PhilChuang.Mobile.Apps.LocationSender.Ui.Views.Impl.Pages"
    xmlns:Microsoft_Phone_Controls_Maps="clr-namespace:Microsoft.Phone.Controls.Maps;assembly=Microsoft.Phone.Controls.Maps"
    x:Class="Com.PhilChuang.Mobile.Apps.LocationSender.Ui.Views.Impl.Pages.SelectContactsPage"
	mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768" d:DataContext="{d:DesignData /SampleData/SelectContactsPageViewModelSampleData.xaml}"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True"
	IsEnabled="{Binding AllControlsEnabled}">

	<phone:PhoneApplicationPage.Resources>
	</phone:PhoneApplicationPage.Resources>

	<!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

		<!--TitlePanel contains the name of the application and page title-->
		<StackPanel x:Name="TitlePanel" Margin="12,0,0,12">
			<TextBlock x:Name="ApplicationTitle" Margin="-12,0,0,0" Text="{Binding AppVersionString}" Style="{StaticResource PhoneTextNormalStyle}"/>
			<TextBlock x:Name="PageTitle" Text="Select Contacts" Margin="12,-7,0,-7" Style="{StaticResource PhoneTextTitle1Style}"/>
		</StackPanel>

		<!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto"/>
				<RowDefinition Height="200"/>
				<RowDefinition Height="Auto"/>
				<RowDefinition />
				<RowDefinition Height="Auto"/>
				<RowDefinition Height="Auto"/>
				<RowDefinition Height="Auto"/>
			</Grid.RowDefinitions>
			<TextBlock TextWrapping="Wrap" Text="{Binding AppStatus}" Style="{StaticResource PhoneTextNormalStyle}" HorizontalAlignment="Center" VerticalAlignment="Top">
				<TextBlock.Foreground>
					<SolidColorBrush Color="{StaticResource PhoneSubtleColor}"/>
				</TextBlock.Foreground>
			</TextBlock>
			<Microsoft_Phone_Controls_Maps:Map x:Name="g_Map" Margin="-12,0,-12,0" Grid.Row="1" CredentialsProvider="{Binding BingMapsCredentials}">
				<Microsoft_Phone_Controls_Maps:Map.Mode>
					<Microsoft_Phone_Controls_Maps:AerialMode ShouldDisplayLabels="True" AnimationLevel="Full" />
				</Microsoft_Phone_Controls_Maps:Map.Mode>
			</Microsoft_Phone_Controls_Maps:Map>
			<TextBlock Text="Contacts" Style="{StaticResource PhoneTextNormalStyle}" Grid.Row="2" />
			<TextBox x:Name="field_Contacts" Grid.Row="3" TextWrapping="Wrap" InputScope="Text" AcceptsReturn="True" KeyUp="field_Contacts_KeyUp" TextChanged="field_Contacts_TextChanged" Text="{Binding RecipientsString}"/>
			<Button x:Name="g_btn_LookupNumber" Content="look up phone number" Click="g_btn_ChooseNumber_Click" Grid.Row="4" />
			<Button x:Name="g_btn_LookupEmail" Content="look up email" Click="g_btn_ChooseEmail_Click" Grid.Row="5" />
			<Button x:Name="g_btn_SelectContacts" Content="finished, choose loc format" Grid.Row="6" Click="g_btn_SelectFormat_Click"/>
		</Grid>
		
    </Grid>

</local:SelectContactsPageBase>